package com.yy.studyspringboot.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;


@Accessors(chain = true)
@Data
public class User2 {
    private Integer id;
    private String name;


    public static void main(String[] args) {
//        User2 user1 = new User2();
//        User2 user2 = user1.setId(1).setName("sfds");
//        System.out.println(user1);
//        System.out.println(user2);
    }
}
